package com.aizuda.boot.config;

import com.baomidou.kisso.web.handler.SSOHandlerInterceptor;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author hjw
 * @description
 * @date 2025年06月23日 15:02
 */
@Component
@Slf4j
public class LoginHandlerInterceptor implements SSOHandlerInterceptor {



    @Override
    public boolean preTokenIsNullAjax(HttpServletRequest request, HttpServletResponse response) {
        log.info("Token is null, redirecting to login page.");
        return true;
    }

    @Override
    public boolean preTokenIsNull(HttpServletRequest request, HttpServletResponse response) {
        log.info("Token is null, redirecting to login page.");
        return true;
    }
}
